package com.bjwl.web.contrlller.admin;

import com.bjwl.pojo.Business;
import com.bjwl.pojo.vo.QueryBusinessVo;
import com.bjwl.service.BranchStoreService;
import com.bjwl.service.BusinessService;
import com.bjwl.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: dzx
 * @Date:Create：in 2020/4/15 14:15
 * @Description:
 * @Modified By：
 * @Version: 1.0
 */
@Controller
@RequestMapping("/admin/Business")
public class MainBusinessController {


    @Autowired
    private BusinessService businessService;

    /**
     * 总店查询客户
     * @param
     * @return
     */
    @RequestMapping("/findAllBusiness")
    public String findAllBusiness(QueryBusinessVo queryBusinessVo, Model model){
        PageBean<Business> pageBean = businessService.findAllBusiness(queryBusinessVo);
        model.addAttribute("pageBean",pageBean);
        return "main_oa/business-list";
    }

}
